Energy Recovery For Desalination, Wastewater, And Co2 Refrigeration